package com.ruoyi.rpt.domain;

import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 报表定义对象 rpt_definition
 * 
 * @author ruoyi
 */
public class RptDefinition extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 报表ID */
    private Long reportId;

    /** 报表编码 */
    @Excel(name = "报表编码")
    private String reportCode;

    /** 报表名称 */
    @Excel(name = "报表名称")
    private String reportName;

    /** 报表类型（0图表 1表格 2混合） */
    @Excel(name = "报表类型", readConverterExp = "0=图表,1=表格,2=混合")
    private String reportType;

    /** 数据源配置 */
    @Excel(name = "数据源配置")
    private String dataSource;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String reportStatus;

    /** 权限标识 */
    private String permissionCode;

    /** 报表内容 */
    private String reportContent;
    
    /** 报表参数列表 */
    private List<RptParameter> parameters;
    
    /** 报表分类ID列表 */
    private Long[] categoryIds;

    public void setReportId(Long reportId) 
    {
        this.reportId = reportId;
    }

    public Long getReportId() 
    {
        return reportId;
    }

    public void setReportCode(String reportCode) 
    {
        this.reportCode = reportCode;
    }

    public String getReportCode() 
    {
        return reportCode;
    }

    public void setReportName(String reportName) 
    {
        this.reportName = reportName;
    }

    public String getReportName() 
    {
        return reportName;
    }

    public void setReportType(String reportType) 
    {
        this.reportType = reportType;
    }

    public String getReportType() 
    {
        return reportType;
    }

    public void setDataSource(String dataSource) 
    {
        this.dataSource = dataSource;
    }

    public String getDataSource() 
    {
        return dataSource;
    }

    public void setReportStatus(String reportStatus) 
    {
        this.reportStatus = reportStatus;
    }

    public String getReportStatus() 
    {
        return reportStatus;
    }

    public void setPermissionCode(String permissionCode) 
    {
        this.permissionCode = permissionCode;
    }

    public String getPermissionCode() 
    {
        return permissionCode;
    }

    public String getReportContent() 
    {
        return reportContent;
    }

    public void setReportContent(String reportContent) 
    {
        this.reportContent = reportContent;
    }

    public List<RptParameter> getParameters() 
    {
        return parameters;
    }

    public void setParameters(List<RptParameter> parameters) 
    {
        this.parameters = parameters;
    }

    public Long[] getCategoryIds() 
    {
        return categoryIds;
    }

    public void setCategoryIds(Long[] categoryIds) 
    {
        this.categoryIds = categoryIds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("reportId", getReportId())
            .append("reportCode", getReportCode())
            .append("reportName", getReportName())
            .append("reportType", getReportType())
            .append("dataSource", getDataSource())
            .append("reportStatus", getReportStatus())
            .append("permissionCode", getPermissionCode())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
} 